Platform Explorer / Nuxeo Platform 6.0

Contribution org.nuxeo.ecm.platform.forms.layouts.webapp.widgts--widgets

This contribution is part of XML component org.nuxeo.ecm.platform.forms.layouts.webapp.widgts inside nuxeo-platform-webapp-base-6.0.jar

Extension Point

Extension point widgets of component WebLayoutManager.

Contributed Items

  • <widget name="life_cycle_transitions" type="life_cycle_transitions">
    
          <documentation>
            Default widget listing available life cycle transitions from the
            document's current state and document's life cycle policy.
            <br/>
            The chosen transition is stored in the contextData of the document.
          </documentation>
    
          <labels>
            <label mode="any">label.life.cycle.changeFor</label>
          </labels>
          <fields>
            <field>contextData['request/lifeCycleTransition']</field>
          </fields>
          <widgetModes>
            <mode value="create">hidden</mode>
            <mode value="view">hidden</mode>
          </widgetModes>
          <properties widgetMode="edit">
            <property name="currentLifeCycleState">#{layoutValue.currentLifeCycleState}</property>
            <property name="lifeCycleName">#{layoutValue.lifeCyclePolicy}</property>
          </properties>
        </widget>

    Default widget listing available life cycle transitions from the document's current state and document's life cycle policy. The chosen transition is stored in the contextData of the document.

  • <widget name="group_name" type="text">
          <labels>
            <label mode="any">label.groupManager.groupName</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field schema="group">groupname</field>
          </fields>
          <widgetModes>
            <mode value="create">edit</mode>
            <mode value="any">hidden</mode>
          </widgetModes>
          <properties widgetMode="any">
            <property name="required">true</property>
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="group_label" type="text">
          <labels>
            <label mode="any">label.groupManager.groupLabel</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field schema="group">grouplabel</field>
          </fields>
          <properties widgetMode="edit">
            <property name="styleClass">dataInputText</property>
          </properties>
        </widget>
  • <widget name="group_members" type="template">
          <labels>
            <label mode="any">label.groupManager.userMembers</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field schema="group">members</field>
          </fields>
          <properties widgetMode="any">
            <property name="template">
              /widgets/user_suggestion_widget_template.xhtml
            </property>
            <property name="userSuggestionSearchType">USER_TYPE</property>
            <property name="operationId">UserGroup.Suggestion</property>
            <property name="hideHelpLabel">true</property>
            <property name="suggestionFormatter">userEntryDefaultFormatter</property>
            <property name="selectionFormatter">userEntryDefaultFormatter</property>
          </properties>
        </widget>
  • <widget name="group_subgroups" type="template">
          <labels>
            <label mode="any">label.groupManager.groupMembers</label>
          </labels>
          <translated>true</translated>
          <fields>
            <field schema="group">subGroups</field>
          </fields>
          <properties widgetMode="any">
            <property name="template">
              /widgets/user_suggestion_widget_template.xhtml
            </property>
            <property name="userSuggestionSearchType">GROUP_TYPE</property>
            <property name="operationId">UserGroup.Suggestion</property>
            <property name="hideHelpLabel">true</property>
            <property name="suggestionFormatter">userEntryDefaultFormatter</property>
            <property name="selectionFormatter">userEntryDefaultFormatter</property>
          </properties>
        </widget>

XML Source

<extension point="widgets" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <widget name="life_cycle_transitions" type="life_cycle_transitions">

      <documentation>
        Default widget listing available life cycle transitions from the
        document's current state and document's life cycle policy.
        <br/>
        The chosen transition is stored in the contextData of the document.
      </documentation>

      <labels>
        <label mode="any">label.life.cycle.changeFor</label>
      </labels>
      <fields>
        <field>contextData['request/lifeCycleTransition']</field>
      </fields>
      <widgetModes>
        <mode value="create">hidden</mode>
        <mode value="view">hidden</mode>
      </widgetModes>
      <properties widgetMode="edit">
        <property name="currentLifeCycleState">#{layoutValue.currentLifeCycleState}</property>
        <property name="lifeCycleName">#{layoutValue.lifeCyclePolicy}</property>
      </properties>
    </widget>

    <!-- group's layout widgets -->
    <widget name="group_name" type="text">
      <labels>
        <label mode="any">label.groupManager.groupName</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field schema="group">groupname</field>
      </fields>
      <widgetModes>
        <mode value="create">edit</mode>
        <mode value="any">hidden</mode>
      </widgetModes>
      <properties widgetMode="any">
        <property name="required">true</property>
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>
    <widget name="group_label" type="text">
      <labels>
        <label mode="any">label.groupManager.groupLabel</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field schema="group">grouplabel</field>
      </fields>
      <properties widgetMode="edit">
        <property name="styleClass">dataInputText</property>
      </properties>
    </widget>
    <widget name="group_members" type="template">
      <labels>
        <label mode="any">label.groupManager.userMembers</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field schema="group">members</field>
      </fields>
      <properties widgetMode="any">
        <property name="template">
          /widgets/user_suggestion_widget_template.xhtml
        </property>
        <property name="userSuggestionSearchType">USER_TYPE</property>
        <property name="operationId">UserGroup.Suggestion</property>
        <property name="hideHelpLabel">true</property>
        <property name="suggestionFormatter">userEntryDefaultFormatter</property>
        <property name="selectionFormatter">userEntryDefaultFormatter</property>
      </properties>
    </widget>
    <widget name="group_subgroups" type="template">
      <labels>
        <label mode="any">label.groupManager.groupMembers</label>
      </labels>
      <translated>true</translated>
      <fields>
        <field schema="group">subGroups</field>
      </fields>
      <properties widgetMode="any">
        <property name="template">
          /widgets/user_suggestion_widget_template.xhtml
        </property>
        <property name="userSuggestionSearchType">GROUP_TYPE</property>
        <property name="operationId">UserGroup.Suggestion</property>
        <property name="hideHelpLabel">true</property>
        <property name="suggestionFormatter">userEntryDefaultFormatter</property>
        <property name="selectionFormatter">userEntryDefaultFormatter</property>
      </properties>
    </widget>
  </extension>